package nxu.it;

import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.HeaderParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

import java.util.List;

@RegisterRestClient
public interface RemoteSignClient {

    @Path("/sign")
    @POST
    @Produces("application/json")
    Uni<SignResult> sign(@HeaderParam("token") String token, SignRequest signRequest);




    @Path("/sign/list")
    @POST
    @Produces("application/json")
    Uni<List<UserDto>> list(@HeaderParam("token") String token);
}


